package org.springblade.flow.drawingapproval.service;

import org.springblade.core.mp.base.BaseService;
import org.springblade.flow.drawingapproval.entity.DrawingApproval;
import org.springblade.flow.drawingapproval.vo.DrawingApprovalVO;

public interface IDrawingApprovalService extends BaseService<DrawingApproval> {

	/**
	 * 发起图纸审批
	 * @param drawingApproval
	 * @return
	 */
	Boolean startDrawingApproval(DrawingApproval drawingApproval);

	/**
	 * 获取图纸审批详情
	 * @param id
	 * @return
	 */
	DrawingApprovalVO getDrawingApprovalDetail(Long id);

	/**
	 * 获取图纸审批详情
	 * @param processInstanceId
	 * @return
	 */
	DrawingApproval getDrawingApprovalByProcessInstanceId(String processInstanceId);
}
